﻿<UserControl x:Class="MishraReader.Views.Settings.AccountTabItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"            
             xmlns:mishraReader="clr-namespace:MishraReader;assembly=MishraReader.ViewModels"
             xmlns:platformVMs="clr-namespace:MishraReader.PlatformVMs"
             mc:Ignorable="d" 
             d:DataContext="{d:DesignInstance Type=platformVMs:SettingsViewModel, IsDesignTimeCreatable=False}"
               d:DesignHeight="600" d:DesignWidth="1000" Foreground="{DynamicResource MetroTextLight}">
    <StackPanel MaxWidth="800" HorizontalAlignment="Left">
        <TextBlock Text="Google Reader" Style="{DynamicResource MetroHeader2}" Margin="0,0,0,0"/>
        <TextBlock TextWrapping="Wrap">
                <Run Text="{x:Static mishraReader:Strings.YouAreConnectedAs}" />
                <Run Text="{Binding UserName, Mode=OneTime, FallbackValue=username}" Foreground="{DynamicResource MetroAccentBrush}" />
                <Run Text="{x:Static mishraReader:Strings.Since}" />
                <Run Text="{Binding ConnectedSince, Mode=OneTime, FallbackValue=10}" /><Run Text="." />
        </TextBlock>
        <TextBlock TextWrapping="Wrap">
                <Run Text="{x:Static mishraReader:Strings.DoYouWantTo}" />
                <Hyperlink Command="{Binding DisconnectCommand}">
                    <Run Text="{x:Static mishraReader:Strings.Disconnect}" />
                </Hyperlink><Run Text=" ?" />
        </TextBlock>

        <TextBlock Text="{x:Static mishraReader:Strings.Preferences}" Style="{DynamicResource MetroHeader2}" Margin="0,30,0,15"/>
        <CheckBox Margin="0,0,0,15" IsChecked="{Binding MarkSelectedItemAsRead, Mode=TwoWay}" Content="{x:Static mishraReader:Strings.MarkSelectedItemAsRead}" />
       
        <ComboBox HorizontalAlignment="Left" IsEnabled="False"  ItemsSource="{Binding SortOptions}" SelectedItem="{Binding SelectedSortOption, Mode=TwoWay}" />    
        
    </StackPanel>
</UserControl>
